package com.yanggu.scala.chapater18.viewbounds

import scala.language.implicitConversions

object MyImplicit {

  implicit def person2OrderedPerson(person22: Person22) = new Ordered[Person22] {
    override def compare(that: Person22) = person22.age - that.age
  }

}
